package com.biaobiaoqi.scoreanalysis.hibernate.bean;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

import com.biaobiaoqi.scoreanalysis.util.Gender;

@Entity
@Table
public class Teacher extends BaseBean{
	@Column(nullable=false,unique=true)
	private String loginName;
	@Column(nullable=false)
	private String password;
 	@Column(nullable=false)
	private Gender gender;
	private Date birthday;
 	private String phoneNumber;
 	@Column(nullable=false)
 	private String email;
	public String getLoginName() {
		return loginName;
	}
	public void setLoginName(String loginName) {
		this.loginName = loginName;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
 	public Gender getGender() {
		return gender;
	}
	public void setGender(Gender gender) {
		this.gender = gender;
	}
	public Date getBirthday() {
		return birthday;
	}
	public void setBirthday(Date birthday) {
		this.birthday = birthday;
	}
	public String getPhoneNumber() {
		return phoneNumber;
	}
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
 	
}
